package aryn.framework.examples.reflection;

import aryn.framework.reflection.ClassUtil;

public class Test {

	public static void main(String[] args) {
		Animal cat = new Cat(10f);
		
		for(String s : ClassUtil.getFieldsName(ClassUtil.getAllFields(cat.getClass())))		
			System.out.println("field: "+s);

		for(String s : ClassUtil.getMethodsName(ClassUtil.getAllMethods(cat.getClass())))		
			System.out.println("method: "+s);
		
		cat.setName(null);
		for(String s : ClassUtil.getFieldsName(ClassUtil.getFieldsNull(cat)))
			System.out.println("field \"" + s + "\" is null!");
		
		System.out.println();
	}
}
